package com.ruoyi.population.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 人口对象 xlkj_population
 *
 * @author wang
 * @date 2022-01-11
 */
public class XlkjPopulation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 照片 */
    @Excel(name = "照片")
    private String photo;

    /** 证件种类 */
    @Excel(name = "证件种类")
    private String certificatesType;

    /** 证件号码 */
    @Excel(name = "证件号码")
    private String certificatesNum;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 外文姓 */
    @Excel(name = "外文姓")
    private String foreignSurname;

    /** 外文名 */
    @Excel(name = "外文名")
    private String foreignName;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 民族 */
    @Excel(name = "民族")
    private String nation;

    /** 户籍地 */
    @Excel(name = "户籍地")
    private String register;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 人口来源 */
    @Excel(name = "人口来源")
    private String sourceType;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String status;

    /**
     * 所属网格
     * @param id
     */
    @Excel(name = "所属网格")
    private String departmentId;

    private String departmentList;

    /** 上报者id */
    @Excel(name = "上报者")
    private Long userId;

    private String phone;

    private SysUser sysUser;

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDepartmentList() {
        return departmentList;
    }

    public void setDepartmentList(String departmentList) {
        this.departmentList = departmentList;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPhoto(String photo)
    {
        this.photo = photo;
    }

    public String getPhoto()
    {
        return photo;
    }
    public void setCertificatesType(String certificatesType)
    {
        this.certificatesType = certificatesType;
    }

    public String getCertificatesType()
    {
        return certificatesType;
    }
    public void setCertificatesNum(String certificatesNum)
    {
        this.certificatesNum = certificatesNum;
    }

    public String getCertificatesNum()
    {
        return certificatesNum;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setForeignSurname(String foreignSurname)
    {
        this.foreignSurname = foreignSurname;
    }

    public String getForeignSurname()
    {
        return foreignSurname;
    }
    public void setForeignName(String foreignName)
    {
        this.foreignName = foreignName;
    }

    public String getForeignName()
    {
        return foreignName;
    }
    public void setBirthday(Date birthday)
    {
        this.birthday = birthday;
    }

    public Date getBirthday()
    {
        return birthday;
    }
    public void setNation(String nation)
    {
        this.nation = nation;
    }

    public String getNation()
    {
        return nation;
    }
    public void setRegister(String register)
    {
        this.register = register;
    }

    public String getRegister()
    {
        return register;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setSourceType(String sourceType)
    {
        this.sourceType = sourceType;
    }

    public String getSourceType()
    {
        return sourceType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("photo", getPhoto())
            .append("certificatesType", getCertificatesType())
            .append("certificatesNum", getCertificatesNum())
            .append("name", getName())
            .append("sex", getSex())
            .append("foreignSurname", getForeignSurname())
            .append("foreignName", getForeignName())
            .append("birthday", getBirthday())
            .append("nation", getNation())
            .append("register", getRegister())
            .append("address", getAddress())
            .append("sourceType", getSourceType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
